# Contributor: Adam Jensen <adam@acj.sh>
# Maintainer: Adam Jensen <adam@acj.sh>
pkgname=krapslog
pkgver=0.6.0
pkgrel=0
pkgdesc="Tool for visualizing log file volume as sparklines in your terminal"
url="https://github.com/acj/krapslog-rs"
arch="all"
license="MIT"
makedepends="cargo cargo-auditable"
source="$pkgname-rs-$pkgver.tar.gz::https://github.com/acj/krapslog-rs/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-rs-$pkgver"

build() {
	cargo auditable build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
}

sha512sums="
50062cf6aa155f6ad945b977f2b74939363640d46bd5acc5381a693af70b8a4a73787c8f43b9168d7197f562ef7d7ac8185dc8f51db4ae63cfb966031377c69d  krapslog-rs-0.6.0.tar.gz
"
